package com.cml.dm.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cml.dm.admin.entity.DmExeLogger;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface DmExeLoggerMapper extends BaseMapper<DmExeLogger> {
    @Update("CREATE TABLE `dm_exe_logger`  (\n" +
            "  `id` bigint NOT NULL AUTO_INCREMENT,\n" +
            "  `org_id` varchar(32) NULL,\n" +
            "  `sharding_column` varchar(32) NULL,\n" +
            "  `task_id` varchar(32) NULL,\n" +
            "  `version` double NULL,\n" +
            "  `exe_time` datetime NULL,\n" +
            "  `exe_type` int NULL,\n" +
            "  `exe_status` int NULL,\n" +
            "  `undo_path` varchar(255) NULL,\n" +
            "  `backup_path` varchar(255) NULL,\n" +
            "  PRIMARY KEY (`id`)\n" +
            ");")
    void createNewTable();
}
